//
//  SalesTableViewHeaderView.m
//  1243
//
//  Created by 洛水寒 on 16/5/24.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "SalesTableViewHeaderView.h"

@implementation SalesTableViewHeaderView


- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        UILabel *num = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width * 0.45, 40)];
        num.text = @"编号";
        num.textAlignment = NSTextAlignmentCenter;
        [self addSubview:num];
        
        UILabel *quantity = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width * 0.45, 0, self.frame.size.width * 0.25, 40)];
        quantity.text = @"数量";
        quantity.textAlignment = NSTextAlignmentCenter;
        [self addSubview:quantity];
        
        UILabel *price = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width * 0.70, 0, self.frame.size.width * 0.30, 40)];
        price.text = @"价格";
        price.textAlignment = NSTextAlignmentCenter;
        [self addSubview:price];
        
        self.backgroundColor = [UIColor lightGrayColor];
    }
    return self;
}

@end
